// 单例模式
class Singleton {

    static instance: Singleton | null = null

    private divInfo: InterfaceDivInfo | null = null

    constructor(divInfo: InterfaceDivInfo) {
        this.divInfo = divInfo
    }

    static getInstance(divInfo: InterfaceDivInfo) {
        if (this.instance) {
            return this.instance
        }
        this.instance = new Singleton(divInfo)
        return this.instance
    }

}

// Singleton.getInstance({ height: '200px', width: '200px', html: 'bbbb', style: { color: 'pink' } })